package com.lhn;

import com.lhn.config.SpringConfig;
import com.lhn.service.ResourceService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author lhn
 * @date 2024-08-22 18:00
 */

public class App21 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        ResourceService resourceService = ctx.getBean(ResourceService.class);
        boolean flag = resourceService.openUrl("http://pan.baidu.com/haha", "root ");
        System.out.println(flag);
    }
}
